package com.cc.mall.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;

import java.math.BigDecimal;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("商品")
public class ProductVo {

    @ApiModelProperty("商品详情id也就是skuId")
    private Long id;
    /**
     * 商品id
     */
    @ApiModelProperty("商品id也就是spuId")
    private Long pid;
    @ApiModelProperty("商品大标题")
    private String bigTitle;
    @ApiModelProperty("商品小标题")
    private String smallTitle;
    /**
     * 价格
     */
    @ApiModelProperty("商品价格")
    private BigDecimal productPrice;
    /**
     * 规格
     */
    @ApiModelProperty("商品规格")
    private String productSize;
    /**
     * 默认照片src
     */
    @ApiModelProperty("商品默认图片")
    private String defaultPicture;
    /**
     * 商品剩余数量
     */
    @ApiModelProperty("商品剩余数量")
    private Long productRemainNumber;


}
